// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.entity.SpuProduct;
import com.fowo.api.model.spu.product.SpuProductItemVo;
import com.fowo.api.model.spu.product.SpuProductSearchParamPo;
import com.fowo.api.model.spu.product.SpuProductVo;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SpuProductMapper extends BaseMapper<SpuProduct> {
  Page<SpuProductItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") SpuProductSearchParamPo search
  );
  List<SpuProductItemVo> search(
    @Param("search") SpuProductSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") SpuProductSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") SpuProductSearchParamPo search);
  Long getIdBySupId(@Param("supId") Long supId);

  List<Long> getIdsBySupId(@Param("list") List<Long> list);

  Long getSupIdById(@Param("id") Long id);

  List<Long> getSupIdByIds(@Param("ids") List<Long> ids);
  SpuProductVo selectVoById(@Param("id") Long id);
}
